import 'package:beautiful_demo/common/res.dart';
import 'package:beautiful_demo/common/widget/widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import 'controller.dart';

///description:登录


//圆弧背景
class BackgroundPath extends CustomClipper<Path> {

  @override
  Path getClip(Size size) {
    final cc=20.dp;
    final left=size.width-30.dp;
    var path = Path();
    path.moveTo(size.width, 0);
    path.quadraticBezierTo(size.width, size.height/2-cc, left, size.height/2-cc );
    path.lineTo(left, size.height/2+cc);
    path.quadraticBezierTo(size.width, size.height/2+cc, size.width, size.height);
    // path.lineTo(size.width, size.height);



    return path;
  }

  @override
  bool shouldReclip(CustomClipper<Path> oldClipper) {
    return true;
  }
}

